<?php
echo $this->Html->css(array('plugins/chosen/chosen','plugins/multiselect/multi-select','plugins/datepicker/datepicker'),null,array('inline'=>false));
echo $this->Html->script(array('plugins/chosen/chosen.jquery.min','plugins/datepicker/bootstrap-datepicker'),array('inline'=>false));
?>
<?php echo $this->Form->create('Genre',array('class'=>'form-vertical')); ?>
<?php echo (empty($new) && $new != 1)? $this->Form->input('id') : '';?>
<div class="span12 nomargin">
    <div class="controls">
        <div class="input-append span12">
            <?php echo $this->Form->input('name', array('label' => 'Nome do Género', 'class' => 'span9', 'div' => false)); ?>
        </div>
    </div>
    <div class="controls">
        <div class="input-append span12">
            <?php echo $this->Form->input('Anime', array('label' => 'Animes', 'class' => 'span9 chosen-select', 'data-placeholder' => 'Escolha o Género', 'div' => false)); ?>
        </div>
    </div>
    <div class="controls">
        <div class="input-append span12">
            <?php echo $this->Form->input('Manga', array('label' => 'Mangas', 'class' => 'span9 chosen-select', 'data-placeholder' => 'Escolha o Mangar', 'div' => false)); ?>
        </div>

    </div>
    <div class="form-actions">
        <div class="controls span1 check-line">
            <label class="inline hover" for="c5">Status</label>
            <?php echo $this->Form->input('status',array('label'=>false,'div'=>false,'id'=>"c5",'class'=>'icheck-me pull-right','data-skin'=>"square",'data-color'=>"blue")); ?>
        </div>
        <?php echo $this->Form->button('<i class=" icon-ok"></i> Concluir',array('class'=>'btn btn-primary','div'=>'false','escape'=>false)); ?>
        <?php echo $this->Html->link('<i class="icon-reply"></i> Cancelar',array('controller'=>'genres','action'=>'index'),array('escape'=>false,'class'=>'btn btn-danger '))?>
    </div>
</div>
<?php echo $this->Form->end(); ?>